<div class="panel panel-default list">
    <div class="panel-heading" role="tab" id="headingOne">
        <h4 class="panel-title"><a role="button" data-toggle="collapse" data-parent="#accordion"
                                   href="#collapse_${data.bizOrderId}" aria-expanded="true" aria-controls="collapse_${data.bizOrderId}">
            <div class="row row-title">
                <div class="col-md-6"><span>店铺：${data.shopName|empty}</span>下单时间：${data.gmtCreate|formatDate} <br/> <span>订单Id：${data.bizOrderId}</span>买家昵称：${data.buyerNick}</div>
                <div class="col-md-6 text-right">

                    <span class="green-status">第${data.dailySequence}单</span>


                    {@if data.notArriveOnTime == 1}
                        <span class="green-status">未及时妥投</span>
                    {@/if}

                    {@if data.notSendGoodOnTime == 1}
                        <span class="green-status">未及时发货</span>
                    {@/if}


                    {@if data.cancelledBy == 103}
                        <span class="green-status">刷单被拒</span>
                    {@/if}

                    
                    {@if data.notSendOrderReason && (data.status==2 || data.status==3 )}
                    <span style="background: #1fe93a;padding: 5px; color: #fff; font-size: 12px; margin-right: 10px;">未发货原因：${data.notSendOrderReason|empty}</span>
                    {@/if}
                    {@if data.orderType != 2 && data.orderType != 6}
                    <span class="deliveryType {@if data.deliveryType==0}bg-shop{@else if data.deliveryType==1}bg-sdx{@else if data.deliveryType==2}bg-wl{@else if data.deliveryType==3}bg-dsf{@/if}">${data.deliveryType|checkDeliveryType}</span>
                    {@/if}
                    <span class="status">订单状态：${data|checkOrderType}</span>
                    <span class="payStatus">支付状态：{@if data.payStatus==1}待支付{@else}已支付{@/if}</span>
                    <!--{@if data.isAccept == 1}<span class="logistics">物流：${data.logisticsStatus|getLogisticsStatus}</span>{@/if}-->

                    <span class="presale">${data.orderType|showOrderType,data.onlinePayType}
                    </span>
                </div>
                <div class="col-md-6 text-right" style="padding-top: 5px;">
                    {@if (data.orderType == 4 || data.orderType == 5) &&  data.preSaleSendStartTime && data.preSaleSendEndTime}
                    <p>预计送达开始时间：<span class="J_ShowPreStartTime">${data.preSaleSendStartTime|formatDate}</span></p>
                    <p>预计送达结束时间：<span class="J_ShowPreEndTime">${data.preSaleSendEndTime|formatDate}</span></p>
                    {@else if data.orderType == 2 && data.preSaleSendStartTime}
                    <p>发货截止时间：<span class="J_ShowPreStartTime">${data.preSaleSendStartTime|formatDate}</span></p>
                    {@/if}
                </div>
            </div>
        </a></h4>
    </div>
    <div id="collapse_${data.bizOrderId}" class="panel-collapse collapse in" role="tabpanel" aria-labelledby="headingOne">
        <div class="panel-body">
            <div class="order-item" data-id="${data.bizOrderId}">
                <div style="margin-top: 0px;"><strong>配送信息</strong><br>收货人：${data.buyerNick} ${data.mobile}<br>
                    收货地址：
                    {@if data.buyerCity}
                        ${data.buyerCity|empty}
                    {@else}
                        ${data.cityName|empty}
                    {@/if}
                    ${data.community|empty}${data.addressSnapshot|empty}
                </div>
                {@each data.subOrders as sub}
                    <div class="row">
                        <div class="col-md-9"><img src="http://imgsize.52shangou.com/img/${sub.itemPicUrl}.600*600.jpg@1e_100w_100h_1c_0i_1o_90Q_1x.jpg">
                            ${sub.itemName}
                            ${sub.property}
                            商品ID：${sub.itemId}
                            {@if sub.type == 2}
                                <span class="label label-danger">赠品</span>
                            {@/if}
                        </div>
                        <div class="col-md-3 text-right">${sub.unit|empty}<span style="margin-left: 15px;">* ${sub.buyAmount}</span><span
                                style="color: red;margin-left: 15px;">${sub.totalPrice/100}元</span></div>
                    </div>
                {@/each}
            </div>
            <div class="row">

                <div class="col-md-12 text-right" style="margin: 10px 0">
                    {@if data.orderType == 6 && data.notCountSmallCharge != 0}
                        <p>
                            <span class="free-odd">抹 零</span></p>
                        </p>
                    {@/if}
                    共 <span style="color: red;">${data.buyAmount}</span> 件商品 合计：<span style="color: red;">${data.totalPrice / 100}</span> 元
                </div>
            </div>
            <div class="row">
                <div class="col-md-6">
                    <a class="btn btn-primary"  target="_blank"  href="${data.remarkUrl}?biz_order_id=${data.bizOrderId}">备注</a>
                </div>
                <div class="col-md-6 text-right">
                    {@if data.payStatus!=1 && data.status != 5 && data.status != 6 &&data.attributes.outWay != 2 && data.orderType!=6 && data.onlinePayType != 12 }
                        <a class="btn btn-success J_Refund"  data-id=${data.bizOrderId} href="javascript:void(0);">
                        退 款</a>
                    {@/if}
                    {@if data.orderType == 2 && data.status==2 && !data.isDownloadOrderForLogistics}<a class="btn btn-primary J_ModeifyAddress"  data-id="${data.bizOrderId}" data-mobile="${data.mobile}" data-buyAmount="${data.buyAmount}" data-addressSnapshot="${data.addressSnapshot}" data-district="${data.landmarkId}" data-cityCode="${data.cityCode}" data-community="${data.community}" data-orderType="${data.orderType}" href="javascript:void(0);">修改收货地址</a>{@/if}
                    {@if data.orderType == 2 && data.isResendOrder != true && (data.status==3 || data.status==4)}<a class="btn btn-warning J_PreSale"  data-id="${data.bizOrderId}" data-mobile="${data.mobile}" data-buyAmount="${data.buyAmount}" data-addressSnapshot="${data.addressSnapshot}" data-district="${data.landmarkId}" data-cityCode="${data.cityCode}" data-community="${data.community}" data-orderType="${data.orderType}" href="javascript:void(0);">拼团重发</a>{@/if}
                    {@if data.orderType == 5 && data.isResendOrder != true && (data.status==3 || data.status==4)}<a class="btn btn-warning J_PreSale"  data-id="${data.bizOrderId}" data-mobile="${data.mobile}" data-buyAmount="${data.buyAmount}" data-addressSnapshot="${data.addressSnapshot}" data-district="${data.landmarkId}" data-cityCode="${data.cityCode}" data-community="${data.community}" data-orderType="${data.orderType}" href="javascript:void(0);">次日达重发</a>{@/if}
                    {@if data.orderType == 4 && data.isOfficialPreSale == true && data.isResendOrder != true && (data.status==4 || data.status==3)}<a class="btn btn-warning J_PreSale"  data-id="${data.bizOrderId}" data-mobile="${data.mobile}" data-buyAmount="${data.buyAmount}" data-addressSnapshot="${data.addressSnapshot}" data-district="${data.landmarkId}" data-community="${data.community}" data-cityCode="${data.cityCode}" data-orderType="${data.orderType}" href="javascript:void(0);">预售重发</a>{@/if}
                    {@if data.orderType == 2 }
                    <a class="btn btn-default J_groupid"  data-groupid=${data.groupId} href="javascript:void(0);" style="background-color: #F97979;color: white;">查看拼团</a>
                    {@/if}
                    <a class="btn btn-info J_sendHongbao"  data-id=${data.bizOrderId} data-mobile="${data.mobile}" data-orderMobile="${data.orderMobile}" href="javascript:void(0);">发送红包</a>
                    {@if data.status!=5&& data.attributes.outWay != 2 && data.orderType!=6 && data.onlinePayType != 12} <a class="btn btn-danger J_RemoveOrder"  data-id=${data.bizOrderId} href="javascript:void(0);">取消订单</a>{@/if}
                </div>
            </div>

        </div>
    </div>
</div>